#include<stdio.h>
#include<string.h>
int main ()
{
    char ch [10000];

     gets (ch);

    int right=strlen(ch)-1;
    int left =0;

    while(left<=right)
    {
       char tmp =ch[left];
       ch[left] =ch[right];
       ch[right] =tmp;

       right--;
       left++;

    }
    printf("%s",ch);
    getchar();

    return 0;
}